@import "../../../../resources/css/variable";

.root {
  width: 100%;
  flex-grow: 1;
  flex-basis: 0;
  overflow: auto;
  padding: 2px;
  padding-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.02) 1px, transparent 0),
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0),
    linear-gradient(-90deg, rgba(0, 0, 0, 0.03) 1px, transparent 0),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0),
    linear-gradient(transparent 4px, #f5f5f5 0, #f5f5f5 97px, transparent 0),
    linear-gradient(-90deg, #e5e5e5 1px, transparent 0),
    linear-gradient(
      -90deg,
      transparent 4px,
      #f5f5f5 0,
      #f5f5f5 97px,
      transparent 0
    ),
    linear-gradient(#e5e5e5 1px, transparent 0), #f5f5f5;
    background-size: 10px 10px,10px 10px,100px 100px,100px 100px,100px 100px,100px 100px,100px 100px,100px 100px;
}

.area {
  width: 100%;
  height: 100%;
  overflow: auto;
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
}

.actionBar {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zoomBox {
  display: flex;
  align-items: center;
  > div {
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
  }
  .zoomBtn:hover {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
  }
}

.toolbar {
  font-size: 16px;
  height: 45px;
  position: absolute;
  right: 12px;
  cursor: pointer;
  line-height: 45px;
}

.noLockHide {
  color: rgba(255, 255, 255, 0.2) !important;
}

.preview {
  color: $textColor;
  &:hover {
    color: $heightLightColor;
  }
}
